package com.hellogood.yaohuo.client.bussiness.yaohuo;

import com.hellogood.yaohuo.client.bussiness.SearchController;
import com.hellogood.yaohuo.client.common.SearchResultAsynCallback;
import com.hellogood.yaohuo.shared.services.YaohuoService;
import com.smartgwt.client.widgets.grid.ListGridField;

public class YaohuoSearchController extends SearchController {

	@Override
	public void searchForm(String orgCode, String startDate, String endDate, String rz) {
		YaohuoService.Util.getInstance().searchYaohuoFormByOrgCodeAndDate(orgCode, 0, startDate, endDate, rz, new SearchResultAsynCallback(listGrid));
	}

	@Override
	protected void buildListFields() {
		fields = new ListGridField[] { codeField, orgField, dateField, amountField, zdUserField, zdDateField, rzDateField, statusField, remarkField };
	}
}
